/******************************************************************************
 * Product: Adempiere ERP & CRM Smart Business Solution                       *
 * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved.                *
 * This program is free software, you can redistribute it and/or modify it    *
 * under the terms version 2 of the GNU General Public License as published   *
 * by the Free Software Foundation. This program is distributed in the hope   *
 * that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.           *
 * See the GNU General Public License for more details.                       *
 * You should have received a copy of the GNU General Public License along    *
 * with this program, if not, write to the Free Software Foundation, Inc.,    *
 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.                     *
 * For the text or an alternative of this public license, you may reach us    *
 * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA        *
 * or via info@compiere.org or http://www.compiere.org/license.html           *
 *****************************************************************************/
/** Generated Model - DO NOT CHANGE */
package org.compiere.model;

import java.sql.ResultSet;
import java.sql.Timestamp;
import java.util.Properties;

/** Generated Model for hrm_vacationscheduleLine
 *  @author Adempiere (generated) 
 *  @version Release 3.7.0LTS - $Id$ */
public class X_hrm_vacationscheduleLine extends PO implements I_hrm_vacationscheduleLine, I_Persistent 
{

	/**
	 *
	 */
	private static final long serialVersionUID = 20120719L;

    /** Standard Constructor */
    public X_hrm_vacationscheduleLine (Properties ctx, int hrm_vacationscheduleLine_ID, String trxName)
    {
      super (ctx, hrm_vacationscheduleLine_ID, trxName);
      /** if (hrm_vacationscheduleLine_ID == 0)
        {
			setC_BPartner_ID (0);
			setEndDate (new Timestamp( System.currentTimeMillis() ));
			sethrm_vacationschedule_ID (0);
			sethrm_vacationschedule_List_ID (0);
			setStartDate (new Timestamp( System.currentTimeMillis() ));
        } */
    }

    /** Load Constructor */
    public X_hrm_vacationscheduleLine (Properties ctx, ResultSet rs, String trxName)
    {
      super (ctx, rs, trxName);
    }

    /** AccessLevel
      * @return 3 - Client - Org 
      */
    protected int get_AccessLevel()
    {
      return accessLevel.intValue();
    }

    /** Load Meta Data */
    protected POInfo initPO (Properties ctx)
    {
      POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
      return poi;
    }

    public String toString()
    {
      StringBuffer sb = new StringBuffer ("X_hrm_vacationscheduleLine[")
        .append(get_ID()).append("]");
      return sb.toString();
    }

	public org.compiere.model.I_C_BPartner getC_BPartner() throws RuntimeException
    {
		return (org.compiere.model.I_C_BPartner)MTable.get(getCtx(), org.compiere.model.I_C_BPartner.Table_Name)
			.getPO(getC_BPartner_ID(), get_TrxName());	}

	/** Set Business Partner .
		@param C_BPartner_ID 
		Identifies a Business Partner
	  */
	public void setC_BPartner_ID (int C_BPartner_ID)
	{
		if (C_BPartner_ID < 1) 
			set_Value (COLUMNNAME_C_BPartner_ID, null);
		else 
			set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID));
	}

	/** Get Business Partner .
		@return Identifies a Business Partner
	  */
	public int getC_BPartner_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set Description.
		@param Description 
		Optional short description of the record
	  */
	public void setDescription (String Description)
	{
		set_Value (COLUMNNAME_Description, Description);
	}

	/** Get Description.
		@return Optional short description of the record
	  */
	public String getDescription () 
	{
		return (String)get_Value(COLUMNNAME_Description);
	}

	/** Set End Date.
		@param EndDate 
		Last effective date (inclusive)
	  */
	public void setEndDate (Timestamp EndDate)
	{
		set_Value (COLUMNNAME_EndDate, EndDate);
	}

	/** Get End Date.
		@return Last effective date (inclusive)
	  */
	public Timestamp getEndDate () 
	{
		return (Timestamp)get_Value(COLUMNNAME_EndDate);
	}

	/** Set hrm_enddateFact.
		@param hrm_enddateFact hrm_enddateFact	  */
	public void sethrm_enddateFact (Timestamp hrm_enddateFact)
	{
		set_Value (COLUMNNAME_hrm_enddateFact, hrm_enddateFact);
	}

	/** Get hrm_enddateFact.
		@return hrm_enddateFact	  */
	public Timestamp gethrm_enddateFact () 
	{
		return (Timestamp)get_Value(COLUMNNAME_hrm_enddateFact);
	}

	/** Set hrm_startdateFact.
		@param hrm_startdateFact hrm_startdateFact	  */
	public void sethrm_startdateFact (Timestamp hrm_startdateFact)
	{
		set_Value (COLUMNNAME_hrm_startdateFact, hrm_startdateFact);
	}

	/** Get hrm_startdateFact.
		@return hrm_startdateFact	  */
	public Timestamp gethrm_startdateFact () 
	{
		return (Timestamp)get_Value(COLUMNNAME_hrm_startdateFact);
	}

	public I_hrm_vacationschedule gethrm_vacationschedule() throws RuntimeException
    {
		return (I_hrm_vacationschedule)MTable.get(getCtx(), I_hrm_vacationschedule.Table_Name)
			.getPO(gethrm_vacationschedule_ID(), get_TrxName());	}

	/** Set hrm_vacationschedule.
		@param hrm_vacationschedule_ID hrm_vacationschedule	  */
	public void sethrm_vacationschedule_ID (int hrm_vacationschedule_ID)
	{
		if (hrm_vacationschedule_ID < 1) 
			set_Value (COLUMNNAME_hrm_vacationschedule_ID, null);
		else 
			set_Value (COLUMNNAME_hrm_vacationschedule_ID, Integer.valueOf(hrm_vacationschedule_ID));
	}

	/** Get hrm_vacationschedule.
		@return hrm_vacationschedule	  */
	public int gethrm_vacationschedule_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_hrm_vacationschedule_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set hrm_vacationschedule_List.
		@param hrm_vacationschedule_List_ID hrm_vacationschedule_List	  */
	public void sethrm_vacationschedule_List_ID (int hrm_vacationschedule_List_ID)
	{
		if (hrm_vacationschedule_List_ID < 1) 
			set_ValueNoCheck (COLUMNNAME_hrm_vacationschedule_List_ID, null);
		else 
			set_ValueNoCheck (COLUMNNAME_hrm_vacationschedule_List_ID, Integer.valueOf(hrm_vacationschedule_List_ID));
	}

	/** Get hrm_vacationschedule_List.
		@return hrm_vacationschedule_List	  */
	public int gethrm_vacationschedule_List_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_hrm_vacationschedule_List_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set Start Date.
		@param StartDate 
		First effective day (inclusive)
	  */
	public void setStartDate (Timestamp StartDate)
	{
		set_Value (COLUMNNAME_StartDate, StartDate);
	}

	/** Get Start Date.
		@return First effective day (inclusive)
	  */
	public Timestamp getStartDate () 
	{
		return (Timestamp)get_Value(COLUMNNAME_StartDate);
	}
}